package org.wangp.business.order.domain

import org.wangp.framework.core.validate.Delete
import org.wangp.framework.core.validate.Insert
import org.wangp.framework.core.validate.Update
import org.wangp.framework.feign.domain.BaseDTO
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull

data class UserDTO(
	@NotNull(groups = [Delete::class, Update::class], message = "id不能为空")
	var id: Long? = null,
	@NotBlank(groups = [Insert::class, Update::class], message = "username不能为空")
	var username: String? = null,
	@NotBlank(groups = [Insert::class, Update::class], message = "password不能为空")
	var password: String? = null,
	var esId: String? = null
) : BaseDTO<UserDTO>()
